package com.yootk.server;

import java.net.*;

public class UDPServer {
    public static void main(String[] args) throws Exception {
        DatagramSocket server = new DatagramSocket(9000);
        String message = "www.yootk.com";
        DatagramPacket packet = new DatagramPacket(
            message.getBytes(), 
            message.length(), 
            InetAddress.getByName("localhost"), 
            8000
        );
        server.send(packet);
        server.close();
    }
}